home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 100
/
FreelogNo100-NovembreDecembre2010.iso
/
ViePratique
/
Calendar Magic
/
setup.exe
/
{app}
/
OilTank.shf
< prev
next >
Wrap
Text File
|
2006-12-28
|
427b
|
18 lines
Radians
' Oil Tank Calculation
'
' Calculates the volume of oil to volume of cylinder percentage when the oil height is h
'
' d = diameter of cylinder
' h = oil height
' VolPercent = required percentage
'
' IMPORTANT NOTE -- requires radian measure
'
d = 25
==> d = 25
h = 14
==> h = 14
VolPercent = {arccos((d - 2 * h) / d) - 2 * (d - 2 * h) * sqrt(d * h - h ^ 2) / d ^ 2} * (100 / pi)
==> VolPercent = 57.6